<?php
/**
* @version		2.7
* @package		Ignite Gallery
* @copyright	Copyright (C) 2010 Matthew Thomson. All rights reserved.
* @license		GNU/GPLv2
*/

defined('_JEXEC') or die('Restricted access');
define( 'IG_BACKEND', true);
/*Version check, no more PHP4! */
$phpVersion = phpversion();
$firstDigit = intval( substr($phpVersion, 0, 1) );
if($firstDigit < 5)
{
    JError::raise(2, 500, 'PHP Version: '.$phpVersion.', PHP 5 Required, Please See Common Support Questions' );
    return;
}
else
{
    require_once(JPATH_COMPONENT.DS.'defines.php');
    $controller = JRequest::getWord('controller','igcategories');
    require_once(JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php');
    $controllerName = $controller.'Controller';
    $controller = new $controllerName();
    $controller->execute( JRequest::getCmd('task') );
    $controller->redirect(); 
}

?>